/**
 * Created by Administrator on 2017/6/20.
 */
!function (e) {
    // o(0), o(1);
    function main(index) {
        if (n[index]) return n[index].exports;
        var o = n[index] = {
            i: index,
            l: !1,
            exports: {}
        };
        return e[index].call(o.exports, o, o.exports, main), o.l = !0, o.exports
    }

    var n = {};
    main.m = e;
    main.c = n;
    main.i = function (e) {
        return e
    };
    main.p = "";
    return main(main.s = 201);
}({
    0: function (part, exports, main) {
        "use strict";
        Object.defineProperty(exports, "__esModule", {value: !0});

        exports.default = {
            isFunction: function (e) {
                return "function" === typeof e;
            }, isArray: function (e) {
                return e instanceof Array;
            }, isPlainObject: function (e) {
                return "[object Object]" === Object.prototype.toString().call(e);
            }, isIE: function () {
                return !!(window.ActiveXObject || "ActiveXObject" in window)
            }, registerEvent: function (target, eventType, eventHandler, i) {
                target.addEventListener ? target.addEventListener(eventType, eventHandler) : target.attachEvent ? target.attachEvent("on" + eventType, eventHandler, false) : target["on" + eventType] = eventHandler;
            }, removeEvent: function (target, eventType, eventHandler) {
                target.removeEventListener ? target.removeEventListener(target, eventType, eventHandler) : target.detachEvent ? target.detachEvent("on" + eventType, eventHandler, false) : target["on" + eventType] = undefined;
            }
        }
    }, 101: function (part, exports, main) {
        "use strict";

        exports.default = [
            {
                ele: "button", id: "clickM", name: "clickM", value: function () {
                alert("M");
            }
            },
            {
                ele: "button", id: "clickL", name: "clickL", value: function () {
                alert("L");
            }
            }];
        exports.eventName = {
            0: "CLICK_M",
            1: "CLICK_L"
        }
    }, 201: function (part, exports, main) {
        Object.defineProperty(exports, "__esModule", {value: !0});

        var bindEvent = main(0);
        var targets = main(101);
        console.log(bindEvent.default.isIE() ? "当前使用的是IE浏览器" : "非IE浏览器");
        for (var i = 0, l = targets.default.length; i < l; i++) {
            var oTarget = targets.default[i];
            var element = document.createElement(oTarget.ele);
            element.id = oTarget.id;
            bindEvent.default.registerEvent(element, "click", oTarget.value);
            document.body.appendChild(element)
        }
    }
});
